package com.example.async_demo.listener;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:
 * <P> Date: 2024/6/4:17:07
 */

@SuppressWarnings({"unchecked", ""})
@Data
public class LogEvent extends ApplicationEvent {
    private static final Logger log = LoggerFactory.getLogger(LogEvent.class);
    String msg;

    public LogEvent() {
        super(null);
    }

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public LogEvent(Object source) {
        super(source);
    }
}
